package com.hb;

import com.hb.concert.Performance;
import com.hb.config.AspectjConfig;
import com.hb.impl.DefaultPerformance;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Hello world!
 *
 */
public class App 
{
    public static void main( String[] args )
    {
        System.out.println( "Hello World!" );
//        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(AspectjConfig.class);
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("classpath:aop-aspectj-config.xml");
        Performance dp = context.getBean(Performance.class);
        dp.perform();
    }
}
